const fetchList = (size) => {
  let list = [];
  for (let index = 0; index < size; index++) {
    list = list.concat({
      "id|+1": index + 1,
      title: "@cname",
      url: "@image('150x100')",
      discription: "@sentence",
      createTime: "@datetime",
    });
    console.log(list, "===list====");
  }
  return list;
};

export default [
  {
    url: "/api/list",
    method: "get",
    response: (options) => {
      const urlParams = new URLSearchParams(options.url.split("?")[1] || "");
      const list = fetchList(urlParams.get("pageSize"));
      console.log(list, urlParams, "urlParams");
      return {
        code: 200,
        total: 12,
        data: list,
      };
    },
  },
];
